]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
layout: Don't offset trayBox when panel is hidden
authorFlorian Müllner <fmuellner@gnome.org>
Sat, 14 Feb 2015 15:03:28 +0000 (16:03 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Fri, 20 Feb 2015 16:41:34 +0000 (17:41 +0100)
The panel is not visible when in fullscreen, but critical notifications
may still be shown - having them pop out from where the panel would be
looks unpolished, so adjust the trayBox accordingly.

https://bugzilla.gnome.org/show_bug.cgi?id=744850

js/ui/layout.js

index 3f9a05c31010b3479611d10f5a8eace3d6f134e9..802c83511ff3a57dd8ebc32dd3bf8f28ce98413b 100644 (file)
@@ -287,6 +287,9 @@ const LayoutManager = new Lang.Class({
 
         let trayConstraint = new MonitorConstraint({ primary: true, work_area: true });
         this.trayBox.add_constraint(trayConstraint);
+        this.panelBox.bind_property('visible', trayConstraint, 'work-area',
+                                    GObject.BindingFlags.SYNC_CREATE);
+
 
         this._loadBackground();
     },